package com.yunchen.server.service;

import com.yunchen.server.util.OssUtil;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

@Service
public class FileService {
    public String fileUpload(MultipartFile file) {
        String url = OssUtil.checkImage(file);
        String[] imgUrls = url.split("\\?");

        return imgUrls[0];
    }
}
